<link rel="stylesheet" href="__STATIC__/module/common/layui/css/layui.css">

<style>
    .new-form-control{
        margin-left: 10px;
        width: 200px;
        padding: 5px 10px;
        height: 30px;
        font-size: 12px;
        line-height: 1.5;
        border-radius: 3px;
        box-shadow: none;
        color: #555;
        background-color: #fff;
        background-image: none;
        border: 1px solid #ccc;
    }
</style>

<div class="box">
  <div class="box-header">
      
    <div class="row">
        <!--<div class="col-sm-4">-->
            <!--<ob_link><a class="btn" href="{:url('walletAdd')}"><i class="fa fa-plus"></i> 新 增</a></ob_link>-->
        <!--</div>-->

        <div class="box-tools search-form">
            <div class="input-group input-group-sm">
                <input type="date" style="margin-left: 15px;width: 200px;"  class="form-control" id="date" name="date" placeholder="日期"   value="{:input('date')}"/>
                <input type="date" style="margin-left: 10px;width: 200px;"  class="form-control" name="search_data" placeholder="用户名|UID"  value="{:input('search_data')}"/>


                <select name="type" class="new-form-control">
                    <option value="" >全部类型</option>
                    <option value="2" {notempty name="param['type']"}{if condition="$param['type'] eq 2"} selected="selected" {/if}{/notempty} >闪兑转至可用</option>
                    <option value="3" {notempty name="param['type']"}{if condition="$param['type'] eq 3"} selected="selected" {/if}{/notempty} >提现</option>


                </select>
                <div class="input-group-btn" style="display:inline-block">
                    <button type="button" id="search"  url="{:url('withdrawal_log')}" class="btn btn-info btn-flat"><i class="fa fa-search"></i></button>

                </div>
            </div>
        </div>
    </div>

  </div>
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover">
      <thead>
      <tr>
          <th class="checkbox-select-all">
              <label>
                <input class="flat-grey js-checkbox-all" type="checkbox">
              </label>
          </th>
          <th>用户名</th>
          <th>UID</th>
          <th>类型</th>
          <th>可用钱包</th>
          <th>充值数额</th>
          <th>到账数额</th>
          <th>可用钱包余额</th>
          <th>转换时间</th>
          <th>状态</th>

      </tr>
      </thead>
      
      {notempty name='list'}
        <tbody>
            {volist name='list' id='vo'}
                <tr>
                  <td>
                    <label>
                        <input class="flat-grey" type="checkbox" name="ids" value="{$vo.id}">
                    </label>
                  </td>
                  <td>{$vo.username}</td>
                  <td>{$vo.user_id}</td>
                    <td>{$vo.type_text}</td>
                <td>{$vo['before_available_balance']}</td>
                <td>{$vo.number}</td>
                <td>{$vo.account_balance}</td>
                <td>{$vo['after_available_balance']}</td>
                <td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
                <td>{$vo.state_text}</td>

                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>


  </div>
  <div class="box-footer clearfix text-center">
      {$list->render()}
  </div>
</div>
